<script type="text/javascript">
$(function(){
 $.get("parameterCard/getCardType",function(data){
		var contenta="<option value=''>请选择</option>";		
		var i;
		$(data).each(function(n,item){
            for(i=0;i<item.CardType.length;i++){
				
				contenta+="<option value="+item.CardType[i].cardTypeCode+">"
				+item.CardType[i].cardTypeName+"</option>"
			}
			$("#cardTypeNameByACP").html(contenta);
			$("#crtOperator").val(item.activeUser.userNo);
		});
	},"json"); 
	
	
})

 $(function(){
	var oDate = new Date();
	 var oyear=oDate.getFullYear();
	    var oMonth = oDate.getMonth()+1;    
	    var oDay = oDate.getDate();    
	    oTime = oyear+"-"+oMonth+"-"+oDay;//最后拼接时间  
	$("#crtDate1").attr("value",oTime);

	
});  
</script>
<div class="pageContent">
	<form method="post" action="parameterCard/addCardp" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone);">
		<div class="pageFormContent" layoutH="48">
			<p>
				<label>卡产品名称：</label>
				<!-- 20181210 hgl 修改以下1行 -->
				<input id="cardpNameByACP" name="cardpName" size="20" maxlength="30" class="validRequired validDefinitionName" />	
			</P>
			<p>
				<label>卡产品代码：</label>
				<input id="cardpCodeByACP" name="cardpCode" size="20" class="validRequired" onkeyup="this.value=this.value.replace(/\D/g, '')" maxlength=3/>
			</p>
			<p>
				<label>卡类型名称：</label>
				<select id="cardTypeNameByACP" name="cardTypeCode"  class="validRequired" >
				</select>			
			</P>			
			<p>
				<label>卡片特性：</label>
				<select id="cardPropertyByACP" name="cardProperty"  >
				    <option value='0'>普通</option>
					<option value='1'>特殊</option>
				</select>			
			</P>
			<p>
				<label>有效标志：</label>
				<select id="validStatusByACP" name="validStatus" >
					<option value='2'>未启用</option>
					<option value='1'>启用</option>
				</select>
			</P>
			<p>
				<label>有效期（月）：</label>
				<select id="cardValidTimeByACP" name="cardValidTime" class="required">
					<option value='12'>12</option>
					<option value='24'selected="selected">24</option>
					<option value='36'>36</option>
					<option value='60'>60</option>
					<option value='120'>120</option>
				</select>
			</P>
			<p>
				<label>公交应用：</label>
				<select id="busAppFlagByACP" name="busAppFlag" >
					<option value='0'>未启用</option>
					<option value='1'>启用</option>
				</select>	
			</P>
			<p>
				<label>自行车应用：</label>
				<select id="bicycleAppFlagByACP" name="bicycleAppFlag" >
					<option value='0'>未启用</option>
					<option value='1' selected="selected">启用</option>
				</select>	
			</P>
			<p>
				<label>图书馆应用：</label>
				<select id="libraryAppFlagByACP" name="libraryAppFlag" >
					<option value='0'>未启用</option>
					<option value='1' selected="selected">启用</option>
				</select>	
			</P>
			<p>
				<label>小额消费应用：</label>
				<select id="smallConsumptionAppFlagByACP" name="smallConsumptionAppFlag" >
					<option value='0'>未启用</option>
					<option value='1'>启用</option>
				</select>	
			</P>
			<!-- <p>
				<label>初始化机构代码：</label>
				<input id="initOrgCode" name="initOrgCode"  >
			</P>
			<p>
				<label>城市代码：</label>
				<input id="cityCode" name="cityCode"  value="2625" readonly="readonly">
			</P> -->
			<p>
				<label>创建柜员号：</label>
				<input id="crtOperator" name="crtOperator"   readonly="readonly">
			</P>
			<p>
				<label>创建日期：</label>
				<input id="crtDate1" name="crtDate"  readonly="readonly">
			</P>
			<!-- <p>
				<label>默认卡消费方：</label>
				<input id="defCardConsumer" name="defCardConsumer"  >
			</P>
			<p>
				<label>是否是定制卡：</label>
				<select id="isCustomCard" name="isCustomCard" >
				<option value="0">否</option>
			    <option value="1">是</option>
				</select>
			</P> -->
			<p>
				<label>描述：</label>
				<textarea  id="description" name="description" rows="3" cols="20" ></textarea>
			</P>
			<!-- <p>
				<input id="lastOperator" name="lastOperator" size="20" style="visibility:hidden;"/>	
			</P>
			<p>
				<input id="lastDate" name="lastDate" size="20" style="visibility:hidden;"/>	
			</P> -->
		
			
		</div>
		<div class="formBar">
			<ul> 
				<li>
				<div class="buttonActive"><div class="buttonContent"><button id="submit" type="submit" class="valid">提交</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>